package com.rightsidetech.trade.dtos.request;

import com.rightsidetech.commom.base.TimeQueryRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class TdCommodityBillReq extends TimeQueryRequest implements Serializable {
    @ApiModelProperty("订单编号/支付单号")
    private String orderNo;
    @ApiModelProperty("联系人")
    private String usName;
    @ApiModelProperty("手机号")
    private String usPhoneNo;
    @ApiModelProperty("所属大区")
    private Long areaId;
    @ApiModelProperty("所属门店")
    private String storeId;
    @ApiModelProperty("支付方式,0支付宝1微信2其它")
    @Pattern(regexp = "^0|1|2$",message = "支付方式不正确")
    private String tradeChannel;
    @ApiModelProperty("代理商id")
    private Long agentId;
    @ApiModelProperty("订单来源, 0-系统, 1-淘宝, 2-京东, 3-抖音,4-拼多多, 5-天猫, 6-苏宁")
    @Pattern(regexp = "^0|1|2|3|4|5|6$",message = "订单来源不正确")
    private String source;
}
